﻿using MiniFox.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;

namespace MiniFox.Platform.Applications.Models
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class SystemNavItem : SystemNavBase
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("openMode"), JsonConverter(typeof(StringEnumConverter))]
        public OpenMode OpenMode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [JsonProperty("url")]
        public virtual string Url { get; set; }
    }
    

    /// <summary>
    /// 
    /// </summary>
    public class SystemNavLink : SystemNavItem
    {
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public override NavType NavType
        {
            get { return NavType.Link; }
        }
    }
}
